package cz.pproproj.aaservice.guimodule.model;

/**
 * @author David
 * @since 26. 1. 2015
 */
public class AuthorizationRole {

    String roleName;

    public AuthorizationRole() {
    }

    public AuthorizationRole(String roleName) {
        this.roleName = roleName;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        AuthorizationRole that = (AuthorizationRole) o;

        return !(roleName != null ? !roleName.equals(that.roleName) : that.roleName != null);

    }

    @Override
    public int hashCode() {
        return roleName != null ? roleName.hashCode() : 0;
    }
}
